﻿@model IRIS.Models.Sponsor

@{
    ViewBag.Title = "Bæta við Styrktaraðila";
}

    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
 @if (!ViewData.ModelState.IsValid)
 {
     <div class="error" >
        @Html.ValidationSummary(false)
    </div>
 }
    @using (Html.BeginForm()) {
        <fieldset>
            <legend>Styrktaraðilar</legend>
    
            <div class="editor-label">
                <label for="Name">Nafn</label>
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Name)
            </div>
    
            <div class="editor-label">
                <label for="Name">Lýsing</label>
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.Description)
            </div>
    
            <div class="editor-label">
                <label for="Name">Heimasíða</label>
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.URL)
            </div>
    
            <p>
                <input type="submit" value="Bæta við" />
            </p>
        </fieldset>
    }